﻿using FarmExe.FarmSubClass;
using FarmExe.IFactory;
using System;
using System.Collections.Generic;
using System.Text;

namespace FarmExe.SFarm
{
    public class SGfarm : IFarm
    {
        public IAnimal NewAnimal()
        {
            Console.WriteLine("牛食草而长");
            //throw new NotImplementedException();
            return new Cattle();
        }

        public IPlant NewPlant()
        {
            //throw new NotImplementedException();
            Console.WriteLine("菜汲地而生");
            return new Vegetables();
        }
    }
}
